﻿using System;
using System.Text;

class PrintASCIITable
{
    static void Main()
    {
        Console.Title = "ASCII Table";
        Console.OutputEncoding = Encoding.ASCII;
        Console.WriteLine("|  DEC  |Symbol |");
        Console.WriteLine("|=======|=======|");
        for (byte dec = 32; dec < 128; dec++)
        {

            if (dec < 100)
                Console.WriteLine("|   {0}  |   {1}   |", dec, (char)dec);
            else
                Console.WriteLine("|  {0}  |   {1}   |", dec, (char)dec);
            Console.WriteLine("|-------|-------|");
        }
    }
}
